<input type="hidden" name="column.id" value="#(column.id)">
<input type="hidden" name="column.parentId" value="#(column.parentId)">
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">上级</label>
		<div class="layui-input-inline">
			<input type="text" id="columnSelect" lay-verify="required" name="column.parentId" lay-filter="columnSelect" placeholder="选择上级" class="layui-input" value="#(column.parentId)">
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">排序</label>
		<div class="layui-input-inline">
			<input type="text" name="column.sortNum" lay-verify="required|number" autocomplete="off" class="layui-input" value="#(column.sortNum)">
		</div>
	</div>
</div>
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">名称</label>
		<div class="layui-input-inline">
			<input type="text" name="column.name" lay-verify="required|V_name" autocomplete="off" class="layui-input" value="#(column.name)">
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">状态</label>
		<div class="layui-input-inline">
			<input type="radio" name="column.status" value="on" title="启用" #if(column.status == 'on' || column.status == null) checked #end>
			<input type="radio" name="column.status" value="off" title="禁用" #if(column.status == 'off') checked #end>
		</div>
	</div>
</div>
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">设备</label>
		<div class="layui-input-inline">
			<select name="column.device">
			#dictList(parentKey="device_type")
				#for(dict : dictList)
				<option value="#(dict.key)" #if(column.device == dict.key) selected #end>#(dict.value)</option>
				#end
			#end
			</select>
		</div>
	</div>
</div>
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">显示方式</label>
		<div class="layui-input-inline">
			<select name="column.type" lay-verify="required">
				<option value="0" #if(column.type==0) selected #end>仅显示标题</option>
				<option value="1" #if(column.type==1) selected #end>仅显示图标</option>
				<option value="2" #if(column.type==2) selected #end>显示名称和图标</option>
				<option value="3" #if(column.type==3) selected #end>特殊菜单</option>
			</select>
		</div>
	</div>
</div>
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">打开方式</label>
		<div class="layui-input-inline">
			<select name="column.target">
				<option value="_self" #if(column.target=="_self") selected #end>当前窗口</option>
				<option value="_blank" #if(column.target=="_blank") selected #end>新窗口</option>
			</select>
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">链接类型</label>
		<div class="layui-input-inline">
			<select name="column.urlType" lay-filter="url-type">
				<option value="inner" #if(column.urlType == "inner")selected#end>内部链接</option>
				<option value="outer" #if(column.urlType == "outer")selected#end>外部链接</option>
			</select>
		</div>
	</div>
</div>
<div class="layui-form-item page-info">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">页面名称</label>
		<div class="layui-input-inline">
			<select name="column.pageName" id="ID_page_name" lay-filter="page-name">
			#pagesList()
				#for(page : pagesList)
				<option value="#(page.enName)" #if(column.pageName == page.enName) selected #end>#(page.name)</option>
				#end
			#end
			</select>
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">页面类型</label>
		<div class="layui-input-inline">
			<select name="column.pageType" id="ID_page_type" lay-filter="page-type">
			#dictList(parentKey="page_type")
				#for(dict : dictList)
				<option value="#(dict.key)" #if(column.pageType == dict.key) selected #end>#(dict.value)</option>
				#end
			#end
			</select>
		</div>
	</div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label layui-bg-blue">链接地址</label>
	<div class="layui-input-block">
		<input id="ID_column_url" type="text" name="column.url" lay-verify="required" class="layui-input" placeholder="默认以域名开头，因此不需要输入#(site_domain)，以‘/’开头" autocomplete="off" value="#(column.url)">
	</div>
</div>
<div class="layui-form-item page-info">
	<label class="layui-form-label">查询参数</label>
	<div class="layui-input-block">
		<input type="text" name="column.urlQueryString" class="layui-input" placeholder="URL中？号之后的查询字串，填写时忽略掉最前的？号" autocomplete="off" value="#(column.urlQueryString)">
	</div>
</div>
<div class="layui-form-item layui-form-text">
	<label class="layui-form-label">参数</label>
	<div class="layui-input-block">
		<textarea placeholder="一行一个参数，每个参数必须为key=value格式" name="column.paras" class="layui-textarea">#(column.paras)</textarea>
	</div>
</div>
<div class="layui-form-item layui-form-text">
	<label class="layui-form-label">描述</label>
	<div class="layui-input-block">
		<textarea placeholder="请输入内容" name="column.remark" class="layui-textarea">#(column.remark)</textarea>
	</div>
</div>

<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label">图标</label>
		<div class="layui-input-inline">
			<div class="layui-upload">
				<button type="button" class="layui-btn" id="LAY-upload-image-btn">选择图片</button>
				<div class="layui-form-mid layui-word-aux">文件大小限制100K，上传成功可点击图片预览</div>
				<div class="layui-upload-list">
					#if(null == column.icon)
					<img style="max-height: 100px; max-width: 100px" class="layui-upload-img" id="LAY-upload-image" >
					#else
					<img style="max-height: 100px; max-width: 100px" class="layui-upload-img" id="LAY-upload-image" src="#(column.icon)">
					#end
					<p id="LAY-upload-image-text"></p>
				</div>
			</div>

		</div>
	</div>
</div>

<fieldset class="layui-elem-field layui-field-title">
	<legend>SEO信息</legend>
	<blockquote class="layui-elem-quote">内容为空时使用系统SEO</blockquote>
	<div class="layui-field-box">
		<div class="layui-form-item">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-block">
				<input type="text" name="column.seoTitle" placeholder="页面标题" autocomplete="off" class="layui-input" value="#(column.seoTitle)">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">关键字</label>
			<div class="layui-input-block">
				<input type="text" name="column.seoMetaKeywords" placeholder="关键字用英文逗号隔开" autocomplete="off" class="layui-input" value="#(column.seoMetaKeywords)">
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">描述</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" name="column.seoMetaDescription" class="layui-textarea">#(column.seoMetaDescription)</textarea>
			</div>
		</div>
	</div>
</fieldset>

<div class="layui-form-item layui-hide">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" id="LAY-front-submit" lay-filter="LAY-front-submit">立即提交</button>
    </div>
</div>

